package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponce;
import org.csu.mypetstore.api.entity.Cart;
import org.csu.mypetstore.api.vo.CartItemVO;
import org.csu.mypetstore.api.vo.CartVo;

import java.util.List;

public interface CartService {
    CommonResponce<List<Cart>> getCart(String username);
    CommonResponce<Cart> addItem(String username,String itemId);
    CommonResponce<CartVo> removeItem(String username, String itemId);
    CommonResponce<CartItemVO> updateQuantity(String username,String itemId,int quantity);
    /*CommonResponce<Void> clearCart(String username);*/
}
